import requests from '../common/request'

export function deleteOrder(data) {
  return requests.delete({
    url: '/order_mobile/base/delete_order?orderNo=' + data.orderNo
  })
}
//获取积分抵扣
export function queryPoints(discountQuery) {
  return requests.post({
    url: '/order_mobile/discount/query_points_discount',
    data: discountQuery
  })
}

export function queryDiscount(data) {
  return requests.post({
    url: '/order_mobile/discount/query_discount',
    data: data
  })
}

export function queryMemberCouponDiscount(data) {
  return requests.post({
    url: '/order_mobile/discount/query_member_coupon_discount',
    data: data
  })
}
// 获取未完成订单
export function getOrderCount(data) {
  return requests.get({
    url: '/wx_order/order/getOrderCount?types=' + data.types,
  })
}


